package br.com.gc.rfqx.model.dao;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import br.com.gc.rfqx.model.entity.Quotation;

@Repository
public class QuotationDao {

	@PersistenceContext
	private EntityManager em;
	
	public QuotationDao() {
		
		System.out.println("QuotationDao Created");
	
	}

	@Transactional
	public void create(Quotation quotation) {
		em.persist(quotation);
	}

	public void update(Quotation quotation) {
		
	}
	

	public Quotation findById( Long id ) {
		
		return null;
		
	}
	
	
}
